package com.ruoyi.system.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 车间任务卡对象 mes_task_card
 * 
 * @author ruoyi
 * @date 2024-06-01
 */
public class MesTaskCard extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 车间任务卡id */
    private Integer id;

    /** 任务卡编码 */
    @Excel(name = "任务卡编码")
    private String taskCardId;

    /** 产品编码 */
    @Excel(name = "产品编码")
    private String prodId;

    /** 任务编码 */
    @Excel(name = "任务编码")
    private String taskId;

    public String getOldTaskId() {
        return oldTaskId;
    }

    public void setOldTaskId(String oldTaskId) {
        this.oldTaskId = oldTaskId;
    }

    private String oldTaskId;

    /** 计划编码 */
    @Excel(name = "计划编码")
    private String planId;

    /** 任务状态(0未完成/1已完成) */
    @Excel(name = "任务状态(0未完成/1已完成)")
    private Long taskCardStatus;

    /** 加工数量 */
    @Excel(name = "加工数量")
    private Long procNum;

    /** 任务开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "任务开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date taskTime;

    /** 任务结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "任务结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date taskFinTime;

    /** 生产进度 */
    @Excel(name = "生产进度")
    private Long productionSchedule;

    public List<MesTaskCard> getMtrs() {
        return mtrs;
    }

    public void setMtrs(List<MesTaskCard> mtrs) {
        this.mtrs = mtrs;
    }

    private List<MesTaskCard> mtrs;

    public List<MesTaskCard> getSubmtrs() {
        return submtrs;
    }

    public void setSubmtrs(List<MesTaskCard> submtrs) {
        this.submtrs = submtrs;
    }

    private List<MesTaskCard> submtrs;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setTaskCardId(String taskCardId) 
    {
        this.taskCardId = taskCardId;
    }

    public String getTaskCardId() 
    {
        return taskCardId;
    }
    public void setProdId(String prodId) 
    {
        this.prodId = prodId;
    }

    public String getProdId() 
    {
        return prodId;
    }
    public void setTaskId(String taskId) 
    {
        this.taskId = taskId;
    }

    public String getTaskId() 
    {
        return taskId;
    }
    public void setPlanId(String planId) 
    {
        this.planId = planId;
    }

    public String getPlanId() 
    {
        return planId;
    }
    public void setTaskCardStatus(Long taskCardStatus) 
    {
        this.taskCardStatus = taskCardStatus;
    }

    public Long getTaskCardStatus() 
    {
        return taskCardStatus;
    }
    public void setProcNum(Long procNum)
    {
        this.procNum = procNum;
    }

    public Long getProcNum()
    {
        return procNum;
    }
    public void setTaskTime(Date taskTime) 
    {
        this.taskTime = taskTime;
    }

    public Date getTaskTime() 
    {
        return taskTime;
    }
    public void setTaskFinTime(Date taskFinTime) 
    {
        this.taskFinTime = taskFinTime;
    }

    public Date getTaskFinTime() 
    {
        return taskFinTime;
    }
    public void setProductionSchedule(Long productionSchedule) 
    {
        this.productionSchedule = productionSchedule;
    }

    public Long getProductionSchedule() 
    {
        return productionSchedule;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("taskCardId", getTaskCardId())
            .append("prodId", getProdId())
            .append("taskId", getTaskId())
            .append("planId", getPlanId())
            .append("taskCardStatus", getTaskCardStatus())
            .append("procNum", getProcNum())
            .append("taskTime", getTaskTime())
            .append("taskFinTime", getTaskFinTime())
            .append("productionSchedule", getProductionSchedule())
            .toString();
    }
}
